/**
 * 实验室管理API
 */
import request from '../libs/request';



/**
 * 发起实验室申请
 * @param para
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export function saveApplyLab (para) {
    return request({
        url: 'api/lab/saveApplyLab',
        method: 'post',
        data: para
    });
}




/**
 * 获取实验室分页列表
 * @returns {*}
 */
export function getLabPageManageList (para) {
    return request({
        url: 'api/lab/laboratory/page',
        method: 'get',
        params: para
    });
}


/**
 * 保存实验室
 * @returns {*}
 */
export function saveLab (para) {
    return request({
        url: 'api/lab/laboratory/save',
        method: 'post',
        data: para
    });
}

/**
 * 删除实验室
 * @returns {*}
 */
export function deleteLab (para) {
    return request({
        url: 'api/lab/laboratory/delete',
        method: 'post',
        data: para
    });
}

/**
 * 获取实验室分页列表
 * @returns {*}
 */
export function getLabList (para) {
    return request({
        url: 'api/lab/laboratory/list',
        method: 'get',
        params: para
    });
}
